import Vue from "vue";
import VueRouter from "vue-router";
Vue.use(VueRouter);
export default new VueRouter({
    mode:'hash',
    routes:[
        {
            path:'/',
            redirect:'/home'
        },
        {
            path:'*',
            name:'notfound',
            component:()=>import('@v/NotFound.vue')
        },
        {
            path:'/home',
            name:'home',
            component:()=>import('@v/Home.vue'),
            children:[
                {
                    path:'/home/onlineservice',
                    name:'onlineservice',
                    component:()=>import('@v/Online_Service.vue')
                },
                {
                    path:'/home/commonproblem',
                    name:'commonproblem',
                    component:()=>import('@v/Common_problem.vue')
                },
                {
                    path:'/home/securitycenter',
                    name:'securitycenter',
                    component:()=>import('@v/Security_Center.vue')
                },
                {
                    path:'/home/signout',
                    name:'sign out',
                    component:()=>import('@v/Sign_out.vue')
                },
                {
                    path:'/home/studentsinfo',
                    name:'studentsinfo',
                    component:()=>import('@v/Students_info.vue'),
                    meta:[
                        {
                            name:'首页',
                            url:'/home'
                        },
                        {
                            name:'学生信息录入'
                        }
                    ],
                },
                {
                    path:'/home/searchinfo',
                    name:'searchstudentsinfo',
                    component:()=>import('@v/Search_info.vue'),
                    meta:[
                        {
                            name:'首页',
                            url:'/home'
                        },
                        {
                            name:'学生信息查询'
                        }
                    ],
                },
                {
                    path:'queryone',
                    name:'queryone',
                    component:()=>import('@v/Query_one.vue'),
                    meta:[
                        {
                            name:'首页',
                            url:'/home'
                        },
                        {
                            name:'学生信息查询',
                            url:'/home/searchinfo'
                        },
                        {
                            name:'查询单个学生信息'
                        }
                    ]
                },
                {
                    path:'queryall',
                    name:'queryall',
                    component:()=>import('@v/Query_All.vue'),
                    meta:[
                        {
                            name:'首页',
                            url:'/home'
                        },
                        {
                            name:'学生信息查询',
                            url:'/home/searchinfo'
                        },
                        {
                            name:'查询所有学生信息'
                        }
                    ],
                },
                {
                    path:'headinfo',
                    name:'headInfo',
                    component:()=>import('@v/Head_info.vue/'),
                    meta:[
                        {
                            name:'首页',
                            url:'/home'
                        },
                        {
                            name:'学生信息查询',
                            url:'/home/searchinfo'
                        },
                        {
                            name:'查询所有学生信息',
                            url:'/home/queryall'
                        },
                        {
                            name:'查询带头像的所有学生信息'
                        }
                    ]
                },
                {
                    path:'nothead',
                    name:'nothead',
                    component:()=>import('@v/Nothead_info.vue'),
                    meta:[
                        {
                            name:'首页',
                            url:'/home'
                        },
                        {
                            name:'学生信息查询',
                            url:'/home/searchinfo'
                        },
                        {
                            name:'查询所有学生信息',
                            url:'/home/queryall'
                        },
                        {
                            name:'查询不带头像的所有学生信息'
                        }
                    ]
                },
                {
                    path:'studentsdetail',
                    name:'studentsDetail',
                    component:()=>import('@v/StudentsDetail.vue'),
                    meta:[
                        {
                            name:'首页',
                            url:'/home'
                        },
                        {
                            name:'学生信息查询',
                            url:'/home/searchinfo'
                        },
                        {
                            name:'查询所有学生信息',
                            url:'/home/queryall'
                        },
                        {
                            name:'查询带头像的所有学生信息',
                            url:'/home/headInfo'
                        },
                        {
                            name:'学生信息详情'
                        }
                    ]
                },
                {
                    path:'/home/entryexam',
                    name:'entryExam',
                    component:()=>import('@v/Entry_exam.vue'),
                    meta:[
                        {
                            name:'首页',
                            url:'/home'
                        },
                        {
                            name:'入学信息录入',
                        }
                    ]
                },
                {
                    path:'/home/midexam',
                    name:'midExam',
                    component:()=>import('@v/Mid_exam.vue'),
                    meta:[
                        {
                            name:'首页',
                            url:'/home'
                        },
                        {
                            name:'期中信息录入',
                        }
                    ]
                },
                {
                    path:'/home/endexam',
                    name:'endExam',
                    component:()=>import('@v/End_exam.vue'),
                    meta:[
                        {
                            name:'首页',
                            url:'/home'
                        },
                        {
                            name:'期末信息录入',
                        }
                    ]
                },
                {
                    path:'/home/photoupload',
                    name:'photoupload',
                    component:()=>import('@v/Photo_upload.vue')
                },
                {
                    path:'/home/searchentryexam',
                    name:'searchEntryExam',
                    component:()=>import('@v/Search_entryExam.vue'),
                    meta:[
                        {
                            name:'首页',
                            url:'/home'
                        },
                        {
                            name:'学生入学考试查询'
                        }
                    ]
                },
                {
                    path:'/home/entryexamone',
                    name:'EntryExamOne',
                    component:()=>import('@v/EntryExamOne.vue'),
                    meta:[
                        {
                            name:'首页',
                            url:'/home'
                        },
                        {
                            name:'学生入学考试查询',
                            url:'/home/searchentryexam'
                        },
                        {
                            name:'查询单个学生入学考试信息'
                        }
                    ]
                },
                {
                    path:'/home/entryexamall',
                    name:'EntryExamAll',
                    component:()=>import('@v/EntryExamAll.vue'),
                    meta:[
                        {
                            name:'首页',
                            url:'/home'
                        },
                        {
                            name:'学生入学考试查询',
                            url:'/home/searchentryexam'
                        },
                        {
                            name:'查询所有学生入学考试信息'
                        }
                    ]
                },
                {
                    path:'/home/searchmidexam',
                    name:'searchMidExam',
                    component:()=>import('@v/Search_midExam.vue'),
                    meta:[
                        {
                            name:'首页',
                            url:'/home'
                        },
                        {
                            name:'学生期中考试查询'
                        }
                    ]
                },
                {
                    path:'/home/midexamone',
                    name:'MidExamOne',
                    component:()=>import('@v/MidExamOne.vue'),
                    meta:[
                        {
                            name:'首页',
                            url:'/home'
                        },
                        {
                            name:'学生期中考试查询',
                            url:'/home/searchmidexam'
                        },
                        {
                            name:'查询单个学生期中考试信息'
                        }
                    ]
                },
                {
                    path:'/home/midexamall',
                    name:'MidExamAll',
                    component:()=>import('@v/MidExamAll.vue'),
                    meta:[
                        {
                            name:'首页',
                            url:'/home'
                        },
                        {
                            name:'学生期中考试查询',
                            url:'home/searchmidexam'
                        },
                        {
                            name:'查询所有学生入学考试信息'
                        }
                    ]
                }
                ,{
                    path:'/home/searchendexam',
                    name:'searchEndExam',
                    component:()=>import('@v/Search_endExam.vue'),
                    meta:[
                        {
                            name:'首页',
                            url:'/home'
                        },
                        {
                            name:'学生期末考试查询'
                        }
                    ]
                },
                {
                    path:'/home/endexamone',
                    name:'EndExamOne',
                    component:()=>import('@v/EndExamOne.vue'),
                    meta:[
                        {
                            name:'首页',
                            url:'/home'
                        },
                        {
                            name:'学期末考试查询',
                            url:'/home/searchendexam'
                        },
                        {
                            name:'查询单个学生期末考试信息'
                        }
                    ]
                },
                {
                    path:'/home/endexamall',
                    name:'EndExamAll',
                    component:()=>import('@v/EndExamAll.vue'),
                    meta:[
                        {
                            name:'首页',
                            url:'/home'
                        },
                        {
                            name:'学生期末考试查询',
                            url:'home/searchendexam'
                        },
                        {
                            name:'查询所有学生期末考试信息'
                        }
                    ]
                },
                {
                    path:'/home/examanalysis',
                    name:'examanalysis',
                    component:()=>import('@v/ExamAnalysis.vue'),
                    meta:[
                        {
                            name:'首页',
                            url:'/home'
                        },
                        {
                            name:'学生成绩分析'
                        }
                    ]
                }
            ]
        },
        {
            path:'/login',
            name:'login',
            component:()=>import('@v/Login.vue')
        },
        {
            path:'/register',
            name:'register',
            component:()=>import('@v/Register.vue')
        },
        {
            path:'/selfinfo',
            name:'selfinfo',
            component:()=>import('@v/SelfInfo.vue')
        }
    ]
})